﻿/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function (config) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    config.uiColor = '#eee';
    config.filebrowserBrowseUrl = '/content/ckfinder/ckfinder.html'; //上传文件时浏览服务文件夹
    config.filebrowserImageBrowseUrl = '/content/ckfinder/ckfinder.html?Type=Images'; //上传图片时浏览服务文件夹
    config.filebrowserFlashBrowseUrl = '/content/ckfinder/ckfinder.html?Type=Flash';  //上传Flash时浏览服务文件夹
    config.filebrowserUploadUrl = 'content//ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Files'; //上传文件按钮(标签)
    config.filebrowserImageUploadUrl = '/content/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Images'; //上传图片按钮(标签)
    config.filebrowserFlashUploadUrl = '/content/ckfinder/core/connector/aspx/connector.aspx?command=QuickUpload&type=Flash'; //上传Flash按钮(标签)
    config.filebrowserWindowWidth = '1000';
    config.filebrowserWindowHeight = '700';

    config.language = 'zh-cn'; //配置语言
    //config.width = 650; //宽度   
    //config.height = 400; //高度
    config.skin = 'kama'; //编辑器样式（kama、office2003、v2）

    // 取消 “拖拽以改变尺寸”功能
    config.resize_enabled = false;

    // 基础工具栏
    //config.toolbar = "Basic";
    // 全能工具栏
    //config.toolbar = "Full";

    //自定义工具栏
    config.toolbar = [
        ['Source', '-', 'Preview'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord'], ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote', 'ShowBlocks'],
        '/',
        ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript'], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink', 'Anchor'], ['Image', 'Flash', 'Table', 'HorizontalRule', 'SpecialChar'],
        '/',
        ['Styles', 'Format', 'Font', 'FontSize'], ['TextColor', 'BGColor'], ['Maximize', ]
        ];

    config.toolbar_Simple = [
        ['Bold', 'Italic', 'Underline', 'Strike', 'Link', 'Unlink', 'Smiley']
        ];

    config.ToolBarCanCollapse = true;

    //    config.toolbar = new object[] {
    //    new object[] { "Source", "-", "Save", "NewPage", "Preview", "-", "Templates" },
    //    new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "Print", "SpellChecker", "Scayt" },
    //    new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" },
    //    new object[] { "Form", "Checkbox", "Radio", "TextField", "Textarea", "Select", "Button", "ImageButton", "HiddenField" },
    //    "/",
    //    new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" },
    //    new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" },
    //    new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" },
    //    new object[] { "BidiLtr", "BidiRtl" },
    //    new object[] { "Link", "Unlink", "Anchor" },
    //    new object[] { "Image", "Flash", "Table", "HorizontalRule", "Smiley", "SpecialChar", "PageBreak", "Iframe" },
    //    "/",
    //    new object[] { "Styles", "Format", "Font", "FontSize" },
    //    new object[] { "TextColor", "BGColor" },
    //    new object[] { "Maximize", "ShowBlocks", "-", "About" }
    //};
};
